package com.ATM;

/*
要写注释哦!!!
*/
public class Account {
    //卡号
    private String carId;
    //密码
    private String password;
    //姓名
    private String name;
    //性别
    private String gender;
    //限额
    private double limit;
    //余额
    public double money;
    //地址
    private String address;
    //生日
    private String birthday;
    //电话
    private String phon;

    public void getxing(Account loginCount){
        String xing = loginCount.getName().substring(0, 1);
        String chenghu = loginCount.getGender().equals("男") ? "先生" : "女士";
        System.out.println("恭喜" + xing + chenghu + "成功登录系统~~~");
    }
    public Account() {
    }

    public Account(String carId, String password, String name, String gender, double limit, double money, String address, String birthday, String phon) {
        this.carId = carId;
        this.password = password;
        this.name = name;
        this.gender = gender;
        this.limit = limit;
        this.money = money;
        this.address = address;
        this.birthday = birthday;
        this.phon = phon;
    }

    public String getCarId() {
        return carId;
    }

    public void setCarId(String carId) {
        this.carId = carId;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public double getLimit() {
        return limit;
    }

    public void setLimit(double limit) {
        this.limit = limit;
    }

    public double getMoney() {
        return money;
    }

    public void setMoney(double money) {
        this.money = money;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getBirthday() {
        return birthday;
    }

    public void setBirthday(String birthday) {
        this.birthday = birthday;
    }

    public String getPhon() {
        return phon;
    }

    public void setPhon(String phon) {
        this.phon = phon;
    }
}
